package com.dailyblue.java.cloud.sentinel.consumer.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.dailyblue.java.commons.util.JsonResult;
import com.dailyblue.java.commons.util.ResultTool;
import org.springframework.stereotype.Component;

@Component
public class BlockExceptionHandler {

    public static JsonResult h1(String server, BlockException e) {
        System.out.println("BlockExceptionHandler`h1");
        return ResultTool.fail("BlockExceptionHandler`h1,server:" + server);
    }
}
